// ============================== 导入依赖 ============================== //

// ============================== 导出提示 ============================== //

export default {
  /**
   * 提示 await CORE.ALERT.alert()
   */
  alert(message, title = '提示') {
    alert(`${title}\n${message}`)
    return new Promise((resolve) => resolve())
  },

  /**
   * 信息 await CORE.ALERT.info()
   */
  info(message, title = '信息') {
    alert(`${title}\n${message}`)
    return new Promise((resolve) => resolve())
  },

  /**
   * 成功 await CORE.ALERT.success()
   */
  success(message, title = '成功') {
    alert(`${title}\n${message}`)
    return new Promise((resolve) => resolve())
  },

  /**
   * 失败 await CORE.ALERT.error()
   */
  error(message, title = '失败') {
    alert(`${title}\n${message}`)
    return new Promise((resolve) => resolve())
  },

  /**
   * 警告 await CORE.ALERT.warning()
   */
  warning(message, title = '警告') {
    alert(`${title}\n${message}`)
    return new Promise((resolve) => resolve())
  },
}
